import Vue from 'vue'
import Vuex from 'vuex'

import d2admin from './modules/d2admin'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // 用户资源
    USER_INFO: undefined
  },
  mutations: {
    SET_USER_INFO (state, payload) {
      state.USER_INFO = payload
    }
  },
  modules: {
    d2admin
  }
})
